/*
 * macros.h
 *
 *  Created on: Aug 9, 2011
 *      Author: harlan
 */

#ifndef MACROS_H_
#define MACROS_H_

/*
   0 - 0000
   1 - 0001
   2 - 0010
   3 - 0011
   4 - 0100
   5 - 0101
   6 - 0110
   7 - 0111
   8 - 1000
   9 - 1001
10 a - 1010
11 b - 1011
12 c - 1100
13 d - 1101
14 e - 1110
15 f - 1111
*/

#define deleteObj(obj) \
	delete obj; \
	obj = NULL

#define deleteArr(obj) \
	delete[] obj; \
	obj = NULL

#define pcast(type, obj) \
	*((type *) &obj)

#endif /* MACROS_H_ */
